module.exports = {
  // MES数据库配置
  mesdb: {
    user: 'sa',
    password: '_hongrun123456',
    server: '192.168.8.11',
    database: 'MES_DB',
    options: {
      encrypt: false,
      enableArithAbort: true,
      trustServerCertificate: true,
      connectionTimeout: 30000,
      requestTimeout: 30000,
      pool: {
        max: 10,
        min: 0,
        idleTimeoutMillis: 30000
      }
    }
  },

  // DC数据库配置
  dcdb: {
    user: 'sa',
    password: '_hongrun123456',
    server: '192.168.8.11',
    database: 'DC_DB',
    options: {
      encrypt: false,
      enableArithAbort: true,
      trustServerCertificate: true,
      connectionTimeout: 30000,
      requestTimeout: 30000,
      pool: {
        max: 10,
        min: 0,
        idleTimeoutMillis: 30000
      }
    }
  },

  // 本地数据库配置
  mydb: {
    user: 'wangwanguo',
    password: '37080760',
    server: 'localhost',
    database: 'mydb',
    options: {
      encrypt: false,
      enableArithAbort: true,
      trustServerCertificate: true,
      connectionTimeout: 30000,
      requestTimeout: 30000,
      pool: {
        max: 10,
        min: 0,
        idleTimeoutMillis: 30000
      }
    }
  },

  // 调试选项
  debug: ['ComQueryPacket']
}
